# This is a test of grouped objects throwing an error
class ErrorTest < Sketch3D
  def container
    super do
      block { background 0 }
      
      sphere(:fill => 1) do
        block do
          @ty = sin_bounce(100) * -1
          @sy = smooth_pulse(100)
        end
        box :tx => 1
        box :tx => -1, :fill => [0.7, 1, 1] do
          block do
            @ry = sin_pulse(210)
            @ty = 2 + sin_pulse(40)
            raise "oops"
          end
        end
      end
    end
  end
end

